package com.hoo.mapper.equipment;

import java.util.List;

import com.hoo.entity.equipment.Advertise;
import com.hoo.entity.equipment.AdvertiseType;
import com.hoo.entity.equipment.LinkAdvertiseMachine;
import com.hoo.form.equipment.AdvertiseForm;
import com.hoo.form.equipment.LinkAdvertiseMachineForm;
import com.hoo.mapper.account.SqlMapper;

public interface AdvertiseMapper extends SqlMapper{
	
	public int insertAdvertise(Advertise advertise);
	
	public int deleteAdvertiseById(int id);
	
	public int updateAdvertise(Advertise advertise);
	
	public List<Advertise> getAdvertiseList(AdvertiseForm form);
	
	public Advertise getAdvertiseById(int id );
	
	public int getAdvertiseCount();
	
	public List<AdvertiseType> getAdvertiseTypeList();
	
	public int deleteAdvertiseTypeById(int id);
	
	public int insertAdvertiseType(AdvertiseType advertiseType);
	
	public int updateAdvertiseType(AdvertiseType advertiseType);

	public List<AdvertiseType> getAllAdvertiseType();

	public List<Advertise> getAllAdvertise();
	
	public int insertLinkAdvertiseMachine(LinkAdvertiseMachine form);

	public List<Advertise> getAdvertiseListByMachineIp(String ip);
	
	public int deleteLinkAdvertiseMachineByMachineId(int id);

}
